package com.ymatou.iapi.im.parameter.emu;

public enum MessageIsNewType {
    Yes(1), No(0);

    private int value = 0;

    MessageIsNewType(int value) {
        this.value = value;
    }

    public int value() {
        return this.value;
    }

    public static MessageIsNewType fromValue(int value) {
        for (MessageIsNewType type : MessageIsNewType.values()) {
            if (type.value() == value) {
                return type;
            }
        }
        return null;
    }
}
